<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tea Case</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: darkslategray;
        }

        img {
            height: 100px;
        }

        #piclist {
            width: 800px;
            height: 250px;
            margin: 100px auto;
        }

        .box {
            float: left;
            width: 180px;
            height: 100px;
            margin: 10px;
            position: relative;
            transform-style: preserve-3d;
            transition: 1.5s;
        }

        .box:hover {
            transform: rotateY(180deg);
        }

        .face {
            width: 180px;
            height: 100px;
            position: absolute; 
            backface-visibility: hidden;
        }

        .front {
            border: 2px solid brown;
        }

        .back {
            background-color: brown;
            border: 2px solid white;
            text-align: center;
            line-height: 100px;
            color: white;
            transform: rotateY(180deg);
        }
    </style>
</head>

<body>
    <div id="piclist">
        <div class="box">
            <div class="face front"><img src="../../images/green-tea.png" alt=""></div>
            <div class="face back">
                <h3>绿茶</h3>
            </div>
        </div>
        <div class="box">
            <div class="face front"><img src="../../images/red-tea.png" alt=""></div>
            <div class="face back">
                <h3>红茶</h3>
            </div>
        </div>
        <div class="box">
            <div class="face front"><img src="../../images/pu-tea.png" alt=""></div>
            <div class="face back">
                <h3>普洱茶</h3>
            </div>
        </div>
    </div>
</body>

</html>